package co.edu.javeriana.aes.patrones.monopolio.cliente;

import co.edu.javeriana.aes.patrones.monopolio.message.Message;
import co.edu.javeriana.aes.patrones.monopolio.message.MessageEventListener;
import co.edu.javeriana.aes.patrones.monopolio.util.exception.MonopolyException;

/**
 *
 * @author german-suarez
 */
public class BoardPanel extends AbstractPanel implements MessageEventListener {

//    private Image bgImage;

    /** Creates new form BoardPanel */
    public BoardPanel(MonopolyClient monopolyClient, ViewHandler viewHandler) throws MonopolyException {
        super(monopolyClient, viewHandler);
        initComponents();
//        bgImage = new ImageIcon(getClass().getResource("/co/edu/javeriana/aes/"
//                + "patrones/monopolio/cliente/resources/NintendoMonopoly.jpg")).getImage();
    }

//    @Override
//    public void paintComponent(Graphics g) {
//        g.drawImage(bgImage, 0, 0, null);
//        repaint();
//    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setBackground(new java.awt.Color(0, 0, 0));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 609, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 539, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables

    @Override
    public void handleChatMessage(Message message) {
    }

    @Override
    public void handleRooms(Message message) {
    }

    @Override
    public void handlePlayerRequest(Message message) {
    }
}
